﻿using MiniFox.Resources;
using System.ComponentModel.DataAnnotations;

namespace MiniFox.Platform.OAuth2.Models
{
    /// <summary>
    /// 找回密码请求
    /// </summary>
    public class RetakePassword
    {
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "LAB_Prompt_SignName", Prompt = "LAB_Prompt_SignName", ResourceType = typeof(Resources.ResMessage))]
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        [SignName(ErrorMessageResourceType = typeof(Resources.ResMessage), ErrorMessageResourceName = "ERR_InvalidSignName")]
        public string SignName { get; set; }
        /// <summary>
        /// 密码找回方式(账号或邮箱)
        /// </summary>
        [Required(ErrorMessageResourceType = typeof(CommonMessages), ErrorMessageResourceName = "MSG_CommonRequired")]
        [SignName(ErrorMessageResourceType = typeof(Resources.ResMessage), ErrorMessageResourceName = "ERR_InvalidSignName")]
        public RetakePasswordMode RetakeMode { get; set; }
        
    }
}
